namespace NExt.form
{
    public class MoneyField : MoneyField<MoneyFieldEvents>
    {
    }

    public abstract class MoneyField<TEvents> : TextField<TEvents>
        where TEvents : MoneyFieldEvents, new()
    {
        public bool? allowDecimals { get; set; }
        public bool? allowNegative { get; set; }
        public string baseChars { get; set; }
        public int? decimalPrecision { get; set; }
        public string decimalSeparator { get; set; }
        public string groupSeparator { get; set; }
        public string maxText { get; set; }
        public int? maxValue { get; set; }
        public string minText { get; set; }
        public int? minValue { get; set; }
        public bool? mixSepators { get; set; }
        public string nanText { get; set; }
    }

    public class MoneyFieldEvents : TextFieldEvents
    {
    }
}